package com.lanswon.qzsmk.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.lanswon.qzsmk.model.Business;

@Repository
public interface BusinessMapper {

	/**
	 * 保存
	 * @param record
	 * @return
	 */
    int insert(Business record);
    
    /**批量插入
     * @param businesses
     * @return
     */
    int batchInsert(@Param("list")List<Business> businesses);
    
    /**
	 * 更新
	 * @param record
	 * @return
	 */
    int update(Business record);
    
    /**
     * 查询当前时间上一条业务
     * @param now
     * @return
     */
    Business queryLastBussiness(String date);
    /**
     * 根据批次号查询
     * @param applyBatchNo
     * @return
     */
    int queryApplyBatchNo(String batchNo);
}